import sys
from PyQt6.QtWidgets import QApplication
from core.view.gui import ClientGUI
from core.presenter.client_presenter import ClientPresenter


def main():
    app = QApplication(sys.argv)

    # 初始化各组件
    view = ClientGUI()
    presenter = ClientPresenter(view)

    # 显示窗口
    view.show()
    sys.exit(app.exec())


if __name__ == "__main__":
    main()